Zend certified PHP/Magento developer

Excel 2013: How to count values in multiple columns? [closed]

I would like to show a sample of data on attached image file. In reality I have much more data (by far more lines) but it’s to show what I want to achieve. Count to be done from descending order. Important is that values in TWO cells are understood together as one value. Count +1 can be done strictly only if there is identical match. Please see attached image file.

I want to count all values where content of BOTH A and B column (left side of image) is identical to the content in same two columns in different line. One match means sum +1.

Image