Is it a proper way to use count with user defined classes?

Printable View