Do sleeping hours stack or are they considered separate sleep hours?

If i get 4 hours of sleep then wake up and then go back to sleep for another 4 hours, is that considered getting 8 hours of sleep or is it just 4 and 4?
2 answers 2