添加countTotal方法

Signed-off-by: jialechan <jiale.chan@gmail.com>
添加方法到AbstractDAO

Signed-off-by: jialechan <jiale.chan@gmail.com>