Someone else has mentioned it, but I would have gone with:
sum(1 for age in ages if age > 17)
with the other method you're treating a boolean as an int. Weak typing.