Being very specific about variable types in frequency calculation.