absolute frequency calculation