Implement count check.