The number of points at which the function f(x)={[cosπx],0≤x≤1|x−1|[x−2],1<x≤2 is discontinuous, is ([.] denotes the greatest integral function )