Generalize whois output filtering by considering word count rather than specific strings