I am using this library to get spf validated. But this one checks direct the DNS lookups (and not of the included domains in the spf) only. So I do not get the proper count