add keyfreq statistics.