Count Sheep
Sheep hop a fence one at a time, slowing down as you count while the sky gets darker. No sign-up, and it all runs in this browser.
0 sheepElapsed 0:00 / 20:00
Nothing saved yet. A record stays in this browser only when you press the button.
This tool does not promise sleep and is not medical advice. If trouble sleeping lasts for long, talk to a health professional.
How it works
- Counting
- Press Start counting and a sheep hops the fence every few seconds. The number is large in the middle with the elapsed time beside it. Pause and Keep counting let you rest whenever you like.
- A pace that slows
- The first gap is 1.6 seconds and each sheep adds a little, so by about the 60th sheep the gap sits halfway between the starting and the slowest gap. A jitter of plus or minus 10 percent keeps the rhythm from sounding like a machine.
- A darker screen
- Over the time you chose the sky deepens and stars come on one by one. A web page cannot change the brightness of your device, so the Dark screen button turns the whole page dark instead. Lower the device brightness yourself.
- Quiet by default
- Turn off animation and the sheep stop hopping while the number keeps rising. If your device asks for reduced motion the page starts without movement. Nothing makes a sound until you press Turn sound on.
- Cards and log
- After you stop, type the number you remember and a one-line card appears. Copy the text or the link, or save an image. Save to log keeps only a date and a count on this device and shows your average.
How it is built
- Every sheep time follows one rule. Starting from the same sky number gives the same order and gaps on any device. The sky number is drawn once at the start and travels inside the card link.
- Gaps use whole milliseconds only. The gap is the starting gap plus (slowest gap minus starting gap) times n divided by (n plus 60), then varied by up to 10 percent either way. Normal approaches 6.4 seconds and Slow approaches 9.6 seconds without passing them.
- A sleeping screen or paused tab can make a clock jump, so any single step longer than one second counts as one second. Sheep never pour out all at once after a pause.
- Sound plays only when you turn it on. Each sheep gets one of five low pitches, played very softly and quieter as the night deepens. No tune or recording is used.
- A link card holds a count, a time and a sky number, and its format and size are checked strictly. A strange link is ignored and the usual screen is shown. Values read from a link are used as numbers and never inserted as text markup.
- Saving uses one browser storage key (sheep-count.log.v1) holding up to 30 dates and counts. It is written only when you press the button, no cookies are used and nothing goes over the network.
How the gap grows with each sheep
Base gaps from the same formula, before the jitter. Real gaps differ from these by up to 10 percent either way.
| Sheep no. | Normal | Slow |
|---|---|---|
| 1 | 1.60 | 2.40 |
| 10 | 2.23 | 3.34 |
| 30 | 3.16 | 4.75 |
| 60 | 3.98 | 5.97 |
| 120 | 4.79 | 7.19 |
| 300 | 5.60 | 8.40 |
Gaps approach 6.40 s (Normal) and 9.60 s (Slow).
Examples
- Counting for 20 minutes at Normal pace averages about 4.6 seconds per sheep, so a little over 260 sheep cross. The exact number runs from 260 to 266 depending on the sky number.
- A card reads like "I counted 137 sheep · 1:12 AM", one line with the count and the time. The time can be left out.
- Save every night for a week and the average is worked out. It is only the average of the numbers you counted and says nothing about the quality of your sleep.
Frequently asked questions
- Does counting sheep actually make you fall asleep?
- This tool does not promise sleep. It is a simple game of watching sheep hop a fence and counting, and it is not medical advice. If trouble sleeping lasts for long, talk to a health professional.
- Do I need to install an app to count sheep online?
- No install and no sign-up. Open the page and press Start counting. Your settings and your count are handled only in this browser and are never sent to a server.
- How does the pace slow down?
- Each sheep adds a little to the gap. Normal starts at 1.6 seconds and approaches 6.4 seconds, and Slow starts at 2.4 seconds and approaches 9.6 seconds. A jitter of plus or minus 10 percent is added to every gap.
- The screen is too bright. Can the page lower it?
- A web page cannot change your device brightness. The Dark screen button turns the whole page dark instead. Lower the device brightness in its settings.
- Does it make sound?
- Nothing plays until you press Turn sound on yourself. When on, each sheep plays one very quiet low pitch that gets quieter as the night deepens. Mute sound stops it at once.
- Can I turn off the animation?
- Press Turn off animation and the sheep stop hopping while the number keeps rising. If your device is set to reduce motion, the page starts without movement.
- Where is my log stored?
- Only when you press Save to log, a date and a count are kept in this browser storage. No cookies are used and nothing is sent anywhere. Clear log removes it at any time.
- What does a card or link contain?
- Only the count, the optional time and a sky number. The time can be left out, and there is no name or free text. Incoming links are checked strictly and ignored if they look wrong.