Why does my artifact count show a discrepancy after a successful replication of a repository in Artifactory?

Why does my artifact count show a discrepancy after a successful replication of a repository in Artifactory?

AuthorFullName__c
JFrog Support
articleNumber
000004247
ft:sourceType
Salesforce
FirstPublishedDate
2018-09-04T23:19:30Z
lastModifiedDate
2024-03-10T07:47:14Z
VersionNumber
5

In some cases when replicating large repositories you may notice that there is a artifact discrepancy after a successful replication event was completed. In order to find the artifacts that are present on the source Artifactory repository and missing from the target Artifactory repository you can use the following bash script: 

https://github.com/jfrog/artifactory-scripts/tree/master/replicationDiff

The github page has complete details on how to run the script and also how it reports the missing artifacts.