Python Count True Values In Array Literal Swift