a simple script that calculates frequency distribution based on a sample size (n)