https://leetcode.com/problems/maximum-number-of-pairs-in-array



Success



```python
class Solution:
    def numberOfPairs(self, nums: List[int]) -> List[int]:
        pair_counting = 0 

        still_got_it = False
        index = 0
        while index < len(nums):
            num = nums[index]
            if nums.count(num) >= 2:
                nums.remove(num)
                nums.remove(num)
                pair_counting += 1
                index = 0
            index += 1
        
        return [pair_counting, len(nums)]
```
