count anonymous classes separately