A free app for Android, by OotaShouten.
If you don't want to count sheep all night long, this app can help you. It lets you turn the screen brightness to a lower level, so you can use it with your phone or tablet in the dark. If you feel like you need a little more sleep, you can close your eyes and tap the screen to make yourself a little sleepy. You will not count sheep all night, but you will sleep a little longer.
If you want to know how many sheep you have to count in the morning, you can look at the menu screen and click the button "Replay". This way, you can count them again, and you will know how many sheep you have.