/* Return the number of parameters that follow the command name.  */
static int8_t prvGetNumberOfParameters(const char *pcCommandString)
/* Return the number of parameters that follow the command name.  */
static int8_t prvGetNumberOfParameters(const char *pcCommandString)
{
int8_t cParameters = 0;
BaseType_t xLastCharacterWasSpace = pdFALSE;
	while( *pcCommandString != 0x00 )
	{
		if( ( *pcCommandString ) == ' ' )
		{
			if( xLastCharacterWasSpace != pdTRUE )
			{
				cParameters++;
				xLastCharacterWasSpace = pdTRUE;
			}
		}
		else
		{
			xLastCharacterWasSpace = pdFALSE;
		}
		pcCommandString++;
	}
	if( xLastCharacterWasSpace == pdTRUE )
	{
		cParameters--;
	}
	return cParameters;
}