I have SQL code where I am assigning the output of the nested query to a variable but gets error incorrect syntax near )

Below is code:

```
set @MAX_CNT =(select coun from (select MAX(SEQ) Coun from (
 SELECT ROW_NUMBER()OVER(ORDER BY COUNTRY)SEQ,*  FROM #TEMP1
)xx)y)

```

Error:

```
Msg 102, Level 15, State 1, Line 53
Incorrect syntax near ')'.

```

Not Sure what is the problem

```
set @MAX_CNT =(select coun from (select MAX(SEQ) Coun from (
 SELECT ROW_NUMBER()OVER(ORDER BY COUNTRY)SEQ,*  FROM #TEMP1
)xx)y)

```

It should assign the value to variable.