How many SPF lookups does include:sparkpostmail.com use?

2. One for the include itself, plus 1 inside SparkPost's record (sparkpostmail.com).

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 exists:%{i}._spf.sparkpostmail.com ~all

No nested includes: everything is listed as IP ranges.

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.