Count Positive Numbers

L1 Easy Arrays & Hashing
Concept
A comparison inside a loop lets you count only the items that satisfy a condition. 0 and negatives are not positive.
Count how many integers in nums are strictly greater than 0. A number like 0 itself does not count.
Examples
▸ nums = [1, -2, 3, 0]
→ 2
▸ nums = [-5]
→ 0
▸ nums = []
→ 0
Progressive Hints
Hint 1 · Nudge
Decide what counts and what doesn't, then only tally the ones that count.
Hint 2 · Plan
Create a counter set to 0. Loop over the array; each time a value is strictly greater than 0, increase the counter. Return the counter.
Hint 3 · Approach
count = 0. For each n: if n > 0 then count = count + 1. Return count.
Output
// Run your code to see the output here.