I have a breathing thing that I do. Basically, every time you take a breath, increase your number by one starting from zero. Every time your mind wanders and you lose track of your number, restart. Usually I only have to restart 2 or 3 times before I fall asleep.