Add BuildTotalCount Method.