add builtin function for count ones in a number