@Override
  public Iterable<Service> getServices() {
    return Collections.singleton(this);
  }
Just returns a reference to this object, which implements the RowCounterService interface.
hbase-examples/src/main/java/org/apache/hadoop/hbase/coprocessor/example/RowCountEndpoint.java