Added tests to item count and search.
Rest API for item count