def strobogrammatic_in_range(low, high):
res = []<EOL>count = <NUM_LIT:0><EOL>low_len = len(low)<EOL>high_len = len(high)<EOL>for i in range(low_len, high_len + <NUM_LIT:1>):<EOL><INDENT>res.extend(helper2(i, i))<EOL><DEDENT>for perm in res:<EOL><INDENT>if len(perm) == low_len and int(perm) < int(low):<EOL><INDENT>continue<EOL><DEDENT>elif len(perm) == high_len and int(perm) > int(high):<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>return count<EOL>
:type low: str
:type high: str
:rtype: int