[Accepted] Swift
\nclass Solution {\n    func countSeniors(_ details: [String]) -> Int {\n        details\n            .map { Int(String($0.suffix(4).prefix(2)))! }\n           
```\nclass Solution {\n    func countSeniors(_ details: [String]) -> Int {\n        details\n            .map { Int(String($0.suffix(4).prefix(2)))! }\n            .filter { $0 > 60 }\n            .count\n    }\n}\n```
['Swift']