Is there a simple way to get the count of active trunks using API?
I would imagine something like this:
```
import requests
url = "https://api.mypurecloud.com/api/v2/telephony/providers/edges/trunks"
headers = {
"Authorization": "Bearer MY_SUPER_SECRET_TOKEN",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
trunks = response.json().get("entities", [])
# Count the number of trunks that are connected
active_trunks = sum(1 for trunk in trunks if trunk.get("connectedStatus") == "connected")
print(f"Total number of active trunks: {active_trunks}")
```
But for the life of me, this does not give me what I want. Where am I going wrong? (Other than the use of "sum" and "for" together - don't kill me

)