CREATE TABLE table_13050822_2 (leg VARCHAR, stage VARCHAR)

What is the number of leg for ss17
SELECT COUNT(leg) FROM table_13050822_2 WHERE stage = "SS17"
SELECT COUNT("leg") FROM "table_13050822_2" WHERE "SS17" = "stage"