Metadata-Version: 2.1
Name: hamidshah
Version: 0.0.1
Summary: A sample hamidshah
Home-page: https://github.com/gituser/hamidshah
Author: Hamidreza
Author-email: hshahzamanian@gmail.com
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Count in List ðŸ§®

A simple Python function that counts how many times a given word appears in a list using the `collections.Counter` class.

## Example

```python
from collections import Counter

def count_in_list(l, word):
    c = Counter(l)
    return c[word]

words = ["apple", "banana", "apple", "cherry", "banana", "apple"]
print(count_in_list(words, "apple"))  # Output: 3
