Basically, place a counter and a property.
Name the Property something like FlagPointsTeam1 or FlagPointsTeam2 and so on, if you have multiple teams.
Now, go back into the counter, set the scope to team and make it update a property.
Make the updated property your property name.
Finally, connect your flag to your counter to increment it.