Given these class examples,
class A {};
class B : A {};
class C {};
class D : A, C {};
class E : D {};
The function should return the number of inheritances of class A as 0 whereas for classes B, C, D and E this function should return 1, 0, 2, 1 respectively.
Note: The function shouldn't take account the whole inherited classes (for example, E takes D that is inherited from A and C indirectly, so it would has 3 but in my case I want to know the number of inheritances of the class in its declaration)