I would like to display the number of connected elements in a relashionship.
For exemple I have a custom post type for classes and another one for students. Students are affected to classes thanks to a relashionship. I would like to be able to display how many students are connected for every class.
Classs A : 25 students, Class B : 18 students; Class C : 28 students...
Is it possible ?