added more path counting methods