Add bam indexing for ere counting