Excel count occurrences

Source: img.wcido.com