Add totalItemCount method support