Python Count True Values In Array Meaning In Math