- fixed error with frequency and count calculation. Made bad assumption that they would be linear.