proc_freq function

Generates Frequency Statistics