Find the number of inheritance relationships in a class diagram