How to fetch the no. of Users dynamically?

How to fetch the no. of Users dynamically?