freqCalc function

Frequencies calculation for risk estimation