DEV: Challenge Accepted ’23 – Task 18

Implement a function that takes a sorted array of integers and returns the number of occurrences of a given target value.