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

Given an integer array nums, return the number of AND triples.
An AND triple is a triple of indices (i, j, k) such that:

0 <= i < nums.length
0 <= j < nums.length
0 <= k < nums.length
nums[i] & nums[j] & nums[k] == 0, where & represents the bitwise-AND operator.

 
Please complete the following python code precisely:
```python
class Solution:
    def countTriplets(self, nums: List[int]) -> int:
```