popcount on Ruby.