The period is the distance between any repetition of the function. In the sinusoidal curve, this is usually the distance between every two times it passes the midline.
It's easy to see that from 0-2 the function curves up, from 2-4 the function curves down, then back up from 4-6 etc.
Therefore the period is 4.