Section 21. The town clerk and the board of registrars, upon receipt of the returns from the several precincts, shall forthwith canvass the same, and immediately declare the result.