I just modified the header and c++ file to return an argument that is already there...
Works a treat...
1) add this to the public part of ESP8266WebServer.h
````` int argcount();```````
2) add this to the ESP8266WebServer.cpp
````````
int ESP8266WebServer::argcount()
{
return _currentArgCount;
}
`````````
now when you want the number of arguments call
server.argcount();
returns an int. The only thing I'm not sure about is that the argcount variable in the class is defined as a size_t, not int... it works and doesn't throw any errors... but i've only been using c, for about 3 weeks so this is all very new to me.