PIM-2844: Add a method to count all association types