added function to compute label distribution of activity data