Python Count True Values In Array Literal Error