Created function to calculate frequency distributions

2 jobs for feature/frequency_distribution in 1 minute and 31 seconds (queued for 2 seconds)