iOS : How to count occurrences of an element in a Swift array?

Published --