code: public <B extends BackendObject> Observable<Integer> count(final Class<B> type){
          return getWebService().count(isLoggedIn(),Query.safeTable(type))
                  .subscribeOn(config.subscribeOn()).observeOn(config.observeOn());
      }
docs: Functin used to perform a count query against remote sever for specifed type.
  @param type Type to be counted.
  @param <B> Type extending BackendObject
  @return Count of objects on remote server matching specified type.