Not only do hours of sleep count, quality of sleep matters as well.
Maximize your sleep quality be setting up the optimal sleep environment: - Blackout curtains - Cooling mat or cool-air in the room - White noise machine or a gentle fan
Stress, diet, and exercise also play roles in T levels. But if your sleep is off, it's that much harder to balance everything else.
Remember: balancing testosterone starts in bed.