The $ZBITCOUNT function returns the number of ON bits in a bit string.
The format for the $ZBITCOUNT function is:
$ZBITCOUNT(expr)
The expression specifies the bit string to examine.