calcInitialDigitDistr function

Generate a frequency count of the initial digits