putting all the iteration counting into partP.m