Create builtin for popcnt.

As suggested by @klickverbot popcnt should be a builtin as it is now an intrinsic.
I'd prefer the simpler loop-based algorithm here because 1) it is easy to visually verify and 2) speed is of no importance for this function.