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):