As I think back, I always remember a new shop owner I knew who suffered with insomnia. He made many attempts to cure his insomnia with drugs, reading, counting sheep, music, etc. and none of them worked. It so happened that his new shop was in his basement below his bedroom and he could hear noises from the shop at night. One evening he had a job running that would cut off motor bell ends for which he got $0.25 each. As these parts dropped off the lathe in a box, they did so with a kind of rhythm. He started counting $0.25, $0.50, $0.75…It worked!  His insomnia was cured.