Count function by column and Sum function

You can call function:
yourobjectDao.QueryBuilder().count(Properties.ID)
yourobjectDao.QueryBuilder().sum(Properties.SALARY)

will generate:
select COUNT(ID) from ....
select SUM(COLUMN) from ....