Implement count and find commands