sprintf(string, "P%d", counter + 1);