The maximum number of substitutions permitted in most competitive international and domestic league games is three , though the permitted number may vary in other competitions or in friendly matches .