If a team exceeds a certain limit of team fouls in a given period ( quarter or half ) – four for NBA and international games – the opposing team is awarded one or two free throws on all subsequent non-shooting fouls for that period , the number depending on the league .