count distinct hashcodes