Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given an integer array nums and two integers minK and maxK.
A fixed-bound subarray of nums is a subarray that satisfies the following conditions:

The minimum value in the subarray is equal to minK.
The maximum value in the subarray is equal to maxK.

Return the number of fixed-bound subarrays.
A subarray is a contiguous part of an array.
 
Please complete the following python code precisely:
```python
class Solution:
    def countSubarrays(self, nums: List[int], minK: int, maxK: int) -> int:
```