You are given an array time of N integers, where time[i] is the time required for the i-th task. You are also given K tier limits in an array tier. For each tier tier[j], all tasks with time[i] ≤ tier[j] belong to that tier. A task may belong to multiple tiers. Compute the total number of task occurrences across all tiers.
Print a single integer: the total count.