add path counting