public int count(){
  int count=0;
  @SuppressWarnings("unchecked") List<Long> counts=find("select count(*) FROM " + entityClass.getName());
  if (counts != null)   for (  Long c : counts)   count+=c;
  return count;
}

public int count ( ) { int count = 0 ; @ SuppressWarnings ( "unchecked" ) List < Long > counts = find ( "select count(*) FROM " + entityClass . getName ( ) ) ; if ( counts != null ) for ( Long c : counts ) count += c ; return count ; }
count objects in table .
