* Counts the number of tuples processed into static variable soFar, if the number of tuples processed reach the
* limit, return EOP; Otherwise, return the tuple
*/
@Override
public Result getNext(Tuple t) throws ExecException {
Result res = null;
Result inp = null;
while (true) {
inp = processInput();
if (inp.returnStatus == POStatus.STATUS_EOP
|| inp.returnStatus == POStatus.STATUS_ERR)
break;