Any advice would be hugely appreciated:

Column A details year numbers in the format 2013, 2014 etc

Column B details names e.g. John Smith
N.B. sometimes the cell will contain more than one name e.g John Smith, Jane Smith

I want to count how many times John Smith appears in column B if column A shows 2013 (on the same row). This needs to take into account as detailed above that Column B may sometimes contain more than one name.

Please help!