It took several hours for police to round up the sheep and get them to safety

By Kelli Bender
Updated June 09, 2016 05:50 PM

When your job is counting sheep, falling asleep on the job should be an expected work hazard.

That’s what happened to a shepherd in Huesca, Spain, on Tuesday, who accidentally took a nap while he was on the clock, reports ABC News.

Instead of following suit, his flock of 1,300 decided to hoof it into town for some early morning fun. When Huesca residents noticed the new neighbors filling the street around 4:30 a.m., they called local police for help.

Authorities found and roused the herdsman responsible for the runaways and, with his help, safely rounded up the sheep by 7:00 a.m.

The flock is now off to summer in the pastures of the Pyrenees.