AirBnB_clone_v2
AirBnB_clone_v2 copied to clipboard
count_and_get
The added methods 'get' and 'count' aims to improve the code. The 'get' method does this by returning the object based on the class and its ID, or None if not found, while the other method 'count' counts the number of objects in storage, it returns the number of objects in storage matching the given class. If no class is passed, returns the count of all objects in storage.