Fixed counterPerChr to return counts