hashes a string as a key and int as its value