Use the API instead:
import requests
def get_follower_count(username):
headers = {
'x-ig-app-id': '936619743392459'
}
url = f'https://www.instagram.com/api/v1/users/web_profile_info/?username={username}'
response = requests.get(url, headers=headers)
return response.json()['data']['user']['edge_followed_by']['count']
print(get_follower_count('thestackoverflow'))