Juan,
Did you test that? Because I don't think that's going to come up with the goods here. You can't quantify a condition like that at a record level in the group header. You either do it the way Ken suggested, use a conditional running total, or use a variable to accumulate the count.
Either way, it's all at the detail level.
Naith