Endangered species will not run out if you count them when you go to sleep. The population of endangered animals is affected by a variety of factors such as habitat loss, poaching, and climate change. Counting them when you go to sleep does not have any impact on their population.