text: public static long Pop_Array(long[] arr, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += arr[i].PopCount();}return popCount;}