I hear that there may be those out there burning many compute cycles counting one bits in piles of data. There is code at http://www.MediaCity.com/~norm/Hamming.html that might provide a factor of ten over more obvious bit counting code.