Answer
The answer is five. Mueller was confirmed by the Senate five times: twice as the United States Attorney for the Northern District of California and three times as the Director of the Federal Bureau of Investigation (FBI). His first confirmation to the FBI was unanimous.