Find the number of real solutions to sin(x) = floor(x).

There are two. When x=0 they both equal zero. When x=pi/2 they both equal 1. Larger values of x give floor(x)>sin(x);

smaller values of x give floor(x)

Odd! That last line should have floor(x) < sin(x).