There are a number of indirect ways to do this, but many are extremely time-consuming and require capturing and marking individuals.
There are some animals whose natural history makes them particularly amenable to estimating population size.