adding support for frequency counts