fixed computeCounts to actually computer the counts