Why not Array.counta UIntinstead Int?
Array.count
UInt
Int
How can it Array.countbe negative?
From Apple's documentation of Swift types here :
NoteUInt , , . , Int , , , . Int , , " ".
Note
UInt , , . , Int , , , . Int , , " ".