Changes to countPeaks module