Concept Flow - Count Occurrences of Element in Sorted Array
Start
Find first occurrence of target
Find last occurrence of target
Calculate count = last - first + 1
Return count
End
We find where the target first appears, then where it last appears, then count how many times it occurs.
