add program that counts element in a hash