Add total count mentod.