The number of points in the interval \( [2,4] \), at which the function \( f(x)=\left[x^{2}-x-\frac{1}{2}\right] \), where \( [.] \) denotes the greatest integer function, is _________.