hashing now working for counting purposes.