fixed getNumTupleRecs, had forgotten break so was infiniteloop