Syntax:
BIT_COUNT(N)

Returns the number of bits that are set in the argument N as an
unsigned 64-bit integer, or NULL if the argument is NULL.

URL: http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html

