JPA Method
in javax.persistence.criteria.CriteriaBuilder

Expression<Long> count(
  Expression<?> x
)


Create an aggregate expression applying the count operation.
Parameters:
x - expression representing input value to count operation
Return:
count expression
Since:
JPA 2.0