I need to count how many times the work WO appears and return the result in column P3

it could be in a1, b1, b2, b3