Good evening I'm just in swift studying and I try to tell for example the word Beach with a for in but it does not work for me .. Thanks
Do not count on the for. Swift has better things. You search for the word and then the accounts
let hay = tripDestinationVotes.filter({$0 == .beach}).count