Total number of solutions of [x]2=x+2[x], where [.] and {.} denotes the greatest integer function and fractional part respectively, is equal to