Your second argument is a function instead of a pattern. Count[{1, 1, 2, 3}, _?(# > 1.5 &)]