Given two arrays of integers a and b of the same length, count the number of times where the arrays have the same value at the same position.