When you can't sleep, it's tempting to watch the clock and calculate how much sleep you aren't getting. But you'll be better rested if you do this instead.