Make getTotalItems deprecated
Merge pull request #1385 from umpirsky/fix/depricated

Make getTotalItems deprecated