One row counting customers that break planned rules: missing_phone, bad_email (no '@') and bad_referrer (referred_by points to no customer).
missing_phone
bad_email
bad_referrer
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.