fix makeCounts and normCounts