C# Solution | Counting
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: O(1)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\npublic class ParkingSystem {\n    Dictionary<int, int> available = new();\n\n    public ParkingSystem(int big, int medium, int small) {\n        available.Add(1, big);\n        available.Add(2, medium);\n        available.Add(3, small);\n    }\n    \n    public bool AddCar(int carType) {\n        if(available[carType] > 0){\n            available[carType]--;\n            return true;\n        }\n\n        return false;\n    }\n}\n\n/**\n * Your ParkingSystem object will be instantiated and called as such:\n * ParkingSystem obj = new ParkingSystem(big, medium, small);\n * bool param_1 = obj.AddCar(carType);\n */\n```
['Design', 'Simulation', 'Counting', 'C#']