This is why the better antivirus solutions employ sophisticated heuristic techniques rather than depend on a database.
Since use of heuristics extends the detection capabilities beyond a specific set of known viruses, there is no exact total number of viruses detected by antivirus programs. Of course, there is no antivirus program that detects absolutely all viruses in the world.