Given an array of integers nums and an integer target, return the number of times target appears in nums.
Example 1: Input: nums = [1,2,2,3,2], target = 2 Output: 3
Example 2: Input: nums = [5,5,5], target = 1 Output: 0
Constraints: 1 <= nums.length <= 100 -1000 <= nums[i], target <= 1000