Counting up attachments using IF . . . THEN