Counting rps in debug mode