My husband and I cannot figure out this mathematical riddle, to save our lives, despite him being a math teacher. The riddle is as follows:
8898=7,
4566=2,
1203=1,
4566=2,
5464=1,
7774=0,
9856=4,
8764=3,
4500=?
Your help would be greatly appreciated.