Fixed problem with incorrect frequency count.