I understand that the franchise was limited to certain people, which is why the original "democracy" was not a "democracy" in the modern understanding of the term.
In early america you stood in line to see your town clerk, told him how you voted, and he marked it down on a big leger book.
After doing it all day, he would in theory know how everyone voted, but would be bound by duty (I know, imagine that now!) to not disclose it.
At the end of the day, the votes were tallied in the ledger book and a letter with the result was sent to the appropriate authority.