No, laying in bed with eyes closed does not count as sleeping. It’s more like resting. It’s definitely more beneficial for the body and mind to get sleep rather than just closed eyes. Sleeping helps one rest and reset their body and mind at a deeper level.