Can anyone pleas check the following formula and tell me why am I getting missing parenthesis errorr?

=SUMIF(MAIN!$B$8:$B$1048576,'people count by hour'!$J$2,COUNTIF(MAIN!$GD$12:$GD$1048576,'people count by hour'!$A$4))


Would appreciate your help