Improve perf for counting windows

3 jobs for 67-statistics-on-genes in 2 minutes and 20 seconds (queued for 2 seconds)