Your question is GeeksforGeeks-Style Array Counting. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Safe Security analyzes arrays of security findings collected from an organization's environment. Given an array of finding identifiers and a target identifier, return the number of times the target appears in the array.
Implement a function that counts exact matches. The array may contain duplicate identifiers, negative integers, and zero. Do not modify the input array.
findings and an integer target.findings equal to target.def count_occurrences(findings, target):