CREATE TABLE table_name_2 (attendance VARCHAR(255), opponent VARCHAR(255), result VARCHAR(255))
What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?
    
SQL: SELECT COUNT(attendance) FROM table_name_2 WHERE opponent = "middlesbrough" AND result = "3-1"