@Override
  public void close() throws HiveException {
    forwardObj[0] = count;
    forward(forwardObj);
    forward(forwardObj);
  }
GenericUDTFCount2 outputs the number of rows seen, twice. It's output twice
to test outputting of rows on close with lateral view.
contrib/src/java/org/apache/hadoop/hive/contrib/udtf/example/GenericUDTFCount2.java