diff --git a/includes/DataStore.php b/includes/DataStore.php index 079cee8..4d7ea20 100644 --- a/includes/DataStore.php +++ b/includes/DataStore.php @@ -18,6 +18,15 @@ class DataStore { */ protected $data = []; + /** + * Get the total number of items in the data store. + * + * @return int + */ + public function count() { + return count( $this->data ); + } + /** * Delete a value by key. *