How to get the Count of Two Collections Shares different field with same values

Hi @Abishan_Parameswaran ,

In general MongoDB aggregation pipeline can substring or split strings using $split or $substr.

Then you can use $lookup to combine the collections with a proceeding $count.

Did I understand your requirements?

Pavel