Mr. Lopez received 1.43 percent of the vote and Sheriff Munks 98.57 percent, or 68,530 votes, according to the county Elections Office.
"I've been getting a lot of people telling me that they voted and wrote my name down," Mr. Lopez told the Almanac.
And the total of 997 votes? "It is what it is and I wanted to say 'Thank you' to everyone who wanted a change," he said. "It was an uphill battle."
Mr. Munks had this to say about the updated numbers: "I'm proud to have received this strong mandate from the voters and plan to continue working on their behalf to make San Mateo County the safest county in California."
The official and final tallies from the election are due July 1.
Mr. Lopez's campaign was not meant to be a write-in campaign, he said, but the logistics of acquiring 20 signatures on his nomination papers in the last hour of the last day of the filing period complicated his efforts. He arrived at the Elections Office after it had closed.