Cleaning up Thrift implementation. Implementing a CountQuery with Long return