Count both integer and Boolean variables