show how to count classes