Added a compare function that returns number of common values