counting through an array of hashes in ruby : so today I am trying to work through some exercises in ruby, and I am a bit stuck. Ruby is extremely new to me so it is just the syntax I am feeling stuck with. Anyways onto the problem.I have this data set which is an array of hashes that looks like this 

    [
    {"name": "John doe","job": "construction"}, 
    {"name": "mary","job": "cook"}...]

I am supposed to loop through this large array of hashes, and count how many people there are with the same name, so if there are 5 marys, i should have 5

any help would be greatly appreciated