The clerks of cities and towns, except the city of Boston, may retain for their own use 75 cents for each license, unless otherwise provided by law, and shall certify under penalties of perjury to the amounts of money thus received and paid over to them.