Ok, so I feel pretty stupid asking, but I'm confused

If LO is sleeping, and then they get super restless (head moving back and forth, moving arms and legs, making noises, etc), does that still count as them "sleeping?" LO has opened her eyes and looked around then closed them, still sleep?