I have a Person() class:
class Person : NSObject { var firstName : String var lastName : String var imageFor : UIImage? var isManager : Bool?
Use filter method:
filter
let managersCount = peopleArray.filter { (person : Person) -> Bool in return person.isManager! }.count
or even simpler:
let moreCount = peopleArray.filter{ $0.isManager! }.count