You have a row of seats that can either be occupied or empty. Your task is to count how many times there is a person sitting in seat i and seat i + 2, with an empty seat in between (seat i + 1).
Input: 6, '#.##.#'
Output: 2
Input: 1, '#'
Output: 0