I used to be a dreadful insomniac. But once I got Sophie, and started walking regularly, the bedtime insomnia disappeared. Maybe age has something to do with that, too.
The main reason I might have trouble falling asleep now is having too much on my mind. (It's also what gets me up most mornings.) But my own version of counting sheep has proven fairly effective.
The idea behind counting sheep is simply that you create some kind of mental busywork, enough to keep your brain occupied but kind of bored. Reciting mantras in meditation works the same way. (How do you not fall asleep while meditating, I want to know.)
Since I'm more language-oriented than math-oriented, counting doesn't really work for me. Instead, I go through the alphabet in one way or another. I name all the states in alphabetical order, or try to think of all the countries that start with each letter. Or animals. Or trees. Or cars. Categories that are broad enough that I'm not going to struggle too hard.
If I'm busy thinking, "Austria, Australia, Andorra, Argentina, Angola ..." I'm not thinking about whatever it is that's bugging me. And next thing I know, I'm asleep.
Maybe that seems really weird to you, but I know at least one other person who mentally reviews the states alphabetically, too.
What do you do to fall asleep?