It is very difficult to do that, actually I think it is impossible (I am not sure), the only way I see to have an approximation is to see the amount of addresses that have been used but this is very inaccurate because one person can create several addresses. And also some people buy on exchanges and never send coins to an external address.