I can still remember my mom encouraging me to count sheep as a viable option to cure my adolesent insomnia. Even though it seemed strange to me to count sheep I was compliant. I can’t remember if it worked or not. At any rate, the saying endures through another generation.
I can tell you first hand, from a pastoral perspective, that counting sheep will not put you to sleep. In fact, it will do the opposite. If I wake up in the night and something comes to my mind concerning members of Emmaus or other believers that I love, then I am toast. I will toss and turn, restlessly praying for them.