Providence India analytics utilities may need to identify contiguous sequences of measurements whose combined value reaches a specified threshold. Given an integer array and a target integer, return the number of non-empty contiguous subarrays whose elements sum exactly to the target.
Implement subarray_sum_count(nums, target). The input nums is a list of integers and target is an integer. Return an integer representing the count of contiguous, non-empty subarrays with sum equal to target. A subarray must contain consecutive elements, and different index ranges count separately even when their values are identical.
def subarray_sum_count(nums, target):