Write a function called count_border(matrix, tgt). The param…

Questions

Write а functiоn cаlled cоunt_bоrder(mаtrix, tgt). The parameter matrix is a 2D list of ints with at least 2 rows and 2 columns. The parameter tgt is an int. This function should return the number of times tgt appears on the perimeter of the matrix. This function must work for any rectangular matrix of any arbitrary size. For example, let's say you had the following matrix: [[1, 2, 3, 2],  [2, 5, 8, 3],  [2, 3, 2, 4]] The call to the method count_border(matrix, 2) should return the value 5, since there are 5 2s around the parameter.  You do not need to import any libraries, comment your code, or worry about minor syntactical issues.