fixed bug with the count inverted repeats function