counting usually involves iterating through the Array and incrementing a ""counter" variablr whenever a condition is met.Basic count if you want to know how many times a specific values appears:
- Initialize a counter at 0.
- Loop through every element.
- If the element matches your target,add 1 to the counter.