Why am I getting a 401 error with my access token in this code?

Getting a 401 unauthorized access error with the below code. What am I missing here?

url = ‘https://.myshopify.com/admin/api/2022-01/products/count.json’
header = {
‘X-Shopify-Storefront-Access-Token’: <access_token>,
‘Content-Type’: ‘application/json’
}
r = requests.get(url, headers=header)

You are using storefront access token , which is incorrect for admin rest api
Storefront API is available only in GraphQL
Read more here
https://shopify.dev/docs/api/storefront#development_frameworks_and_sdks