Specify ClassMethods namespace to avoid conflict.
Add query .count spec.
Implemented query .count method.