count sheep
verbEtymology See count and sheep. Stories of counting sheep to sleep extend back to at least as early as 12th-century Spain and 13th-century Italy from prior Arab stories.
1
Idiomatic To attempt to go to sleep by thinking of something boring, traditionally by counting imaginary sheep.