Implemented total number of stored items.