Effective number of different populations: a new concept and how to use it