[web] Add API method to get the total item count