Surprisingly well, of late.
When I was younger, I shared a room with my brother. Because it also neighboured on my parents' room, I couldn't do much but count sheep and maybe read. Didn't always work; I'd sometimes count hundreds of sheep or finish short books.
In high school, the tendency was to keep going until I just shut down. Not the best solution, but sometimes the only one.
Once or twice, I've taken sleeping pills. Most of my adult life, I've slept to a fan and/or music. I have a 900+ song sleep playlist on my iPod and a sound dock. Of late, I've not needed to fall asleep to music, though a fan is a necessity due to the heat (seriously, 80 degree days nearing October in Vermont? No. NO. Just no.).
These days, I drop off pretty easy most of the time. Which will probably end too soon. But hey.