Implemented utility and getcounts