Fix count in 'search' query