made -k pass on unaligned reads
more flexible counting