Update numtripat.cpp