In most cases, votes for write-in candidates are only counted if they filed a declaration of write-in candidacy.