Counting instances in a multi-dimensional array

I can't figure out what you're trying to do with that line.