Overlap counting

add counting variable