cognitive behavioral therapy for insomnia

What does it mean to have problems sleeping? The difficulty, of course, is that we know so little about our own sleep beyond the qualitative sense of difficulty falling or staying asleep.