Finding Frequency Distribution