The exact number of artificial objects in outer space will never be known. Many factors rule the game:
How objects are numbered, for instance a complex Apollo rover may be counted as one object or split into its detachable elements: antennas, cameras, batteries, seats, console, hand tools carrier, fenders, etc. (see the Apollo 15’s rover in the picture below, credit: NASA);
The number of debris resulting from impacts, collisions and spent stage breakups, provided those events will ever be known;
The number of objects that emerge from deployments and separation of spacecraft (explosive bolts, lens caps, dust covers, clamp bands, fairings, shrouds, etc.);
Untold or unknown events such as classified missions and experiments, private belongings secretly left on the moon by the Apollo astronauts, family items hidden into space hardware by mission staff and technicians, or Apollo hardware unofficially returned to Earth as souvenirs by the astronauts.
Access to Space Agencies records and databases to fetch detailed information about actual flight hardware, exact deployment sequences and other critical information to help establish more accurate listings.