diff --git a/scope_private.go b/scope_private.go
index 1c6e84b1..d5aacfdb 100644
--- a/scope_private.go
+++ b/scope_private.go
@@ -208,7 +208,7 @@ func (scope *Scope) whereSql() (sql string) {
 	return
 }
 
-var hasCountRegexp = regexp.MustCompile(`(?i)count(.+)`)
+var hasCountRegexp = regexp.MustCompile(`(?i)count\(.+\)`)
 
 func (scope *Scope) selectSql() string {
 	if len(scope.Search.selects) == 0 {