util: New function popcount().