in esitimate of hashed values: changed into built-in method to count set bits