Pythonimi, kalaallisuunneqassapput qanga ingerlataaffik tunngasut takornariaqarnera ilisarnissamut atorfiit.
naamik, taama qaffakkersorneq pythoni inissinneqarneq, tamakku allaaserneqarnissaat pillugit peqataaffigit nassiussat:

```python
def count_element(illorfigineq, peelersorneq):
    nalunaarsorneq = 0
    illorfigineq unnioqatigiinnermut peelersuussat:
        kingorna, illorfik peelersorneq imalt:
            nalunaarsorneq +1
    nalunaarsorneq torluunniit
```
illorfigineq, peelersorneq nalunaaqqusaat, illorfigi (illorfigineq) kingusinnerusukkut peelersorneq, nassiussat taama nalunaarsorneq 0 torluarsorneqarnera. unnioqatigiinnermut illorfigi kisitsisit, illorfi peelersorneq imalt kingorna, nalunaarsorneq +1. nalunaarsorneq illorfigineq pillugit nassiussat, illorfi peelersorneq imalt torluarsorneqarnera.

taama uani qaffakkersorneq:

```python
# illorfigi uanersorneq
illorfigi = [1, 2, 3, 4, 5, 2, 2, 4]

# peelersorneq 2 piareersorneq
nalunaarsorneq = count_element(illorfigi, 2)

# nalunaarsorneq uanersorneq
print(nalunaarsorneq) # 3
```