How many SPF lookups does include:sendgrid.net use?

2. One for the include itself, plus 1 inside SendGrid's record (sendgrid.net).

That leaves 8 of the 10 lookups SPF allows for everything else in your record (RFC 7208, section 4.6.4).

Where the lookups come from

v=spf1 ip4:167.89.0.0/17 ip4:208.117.48.0/20 ip4:50.31.32.0/19 ip4:198.37.144.0/20 ip4:198.21.0.0/21 ip4:192.254.112.0/20 ip4:168.245.0.0/17 ip4:149.72.0.0/16 ip4:159.183.0.0/16 ip4:134.128.64.0/18 ip4:159.26.176.0/20 include:ab.sendgrid.net ~all
Nested includeLookups it costs
include:ab.sendgrid.net1

Check your whole record

curl -O https://raw.githubusercontent.com/truone01/spf-lookup-check/main/spf-check.mjs
node spf-check.mjs yourdomain.com

Or use the online SPF lookup checker. Over the limit? Read how to find the cause and fix it.