------
## 最终结论
```python
def numFriendRequests(ages):
    count = 0
    for i in range(len(ages)):
        for j in range(len(ages)):
            if i != j:
                if not (ages[j] <= 0.5 * ages[i] + 7 or ages[j] > ages[i] or (ages[j] > 100 and ages[i] < 100)):
                    count += 1
    return count

# Example usage:
print(numFriendRequests([16,16])) # Output: 2
print(numFriendRequests([16,17,18])) # Output: 2
print(numFriendRequests([20,30,100,110,120])) # Output: 3
```