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

You are given two strings firstString and secondString that are 0-indexed and consist only of lowercase English letters. Count the number of index quadruples (i,j,a,b) that satisfy the following conditions:

0 <= i <= j < firstString.length
0 <= a <= b < secondString.length
The substring of firstString that starts at the ith character and ends at the jth character (inclusive) is equal to the substring of secondString that starts at the ath character and ends at the bth character (inclusive).
j - a is the minimum possible value among all quadruples that satisfy the previous conditions.

Return the number of such quadruples.
 
Please complete the following python code precisely:
```python
class Solution:
    def countQuadruples(self, firstString: str, secondString: str) -> int:
```