When he sees the number of sheep on the calculator display, he promptly falls asleep and then during the credits, he rolls out of bed and falls to the floor.
He promptly falls asleep. He sees the number of sheep on the calculator display. He rolls out of bed. This is during the credits. He falls to the floor. This is during the credits.