Fixed getBooleanCount