if ($count && !($count & 1)) { # Do something with this protein sequence }