change validate to validate_count