Wrong argument count with C program as CGI

I saw some tutorial on C CGI which i forgot the links now, and cant find it on google. In those tutorial, author passed arguments as url parameter and he could display arguments using plain argv[i] (not using QueryString).

Here is my test, which i cant find it working as intended. **Server : nginx

#include <stdio.h>
int main(int argc, char* argv[]){

        printf("arg count is %d\n", argc);
        return 0;

Here is my output:

enter image description here

Where the argument count should be 3. Can someone show some light of hope!