Imagine you are given a number line represented by [0, length - 1], and you are coloring the coordinates along the line. Specifically, you are given a list of queries that determines how to color coordinates along the line in the following format: [coord, color] - color the coordinate coord with color color. All existing colors are overwritten. After processing each query, record the number of consecutive pairs of coordinates which currently have the same color on the number line. Your task is to return an array of length queries.length, containing these records after processing all queries.