Python Count True Values In Array Literal In Java