What you need depends on which sheet needs to show the comparison, and whether you're showing a match cell for cell, or just in total. Working on the assumption that sheet 1 needs to show the comparison, and you're working cell by cell, enter the following in A6 on sheet 1:
Code:
=IF(A5 = Sheet2!A5, "Yes", "No")
Copy this across to I6.
Then, in A7, enter this:
Code:
=COUNTIF(A6:I6, "Yes")
HTH!