Again, I believe the provisions that were cited just now apply to the marking of the ballot at the time the ballot's marked, not necessarily to the counting itself, as happens here before the polls actually close. This is a bit of an anomaly in terms of vote counting. You typically don't count votes until polls are closed. In this case, with these advance polls, you count them before a poll has closed.
The provisions cited are for when a ballot is being marked. This is for an actual counting of the vote, not secrecy.