Added method to fetch the count of objects stored