UINT16 avail = 0; avail = self->pItem->CountItems( id, color );
unsigned int avail = 0; avail = self->pItem->countItems( id, color );
static PyObject* wpItem_countresource( wpItem* self, PyObject* args ){	if ( !self->pItem || self->pItem->free )		Py_RETURN_FALSE;	if ( PyTuple_Size( args ) < 1 || !PyInt_Check( PyTuple_GetItem( args, 0 ) ) )	{		PyErr_BadArgument();		return NULL;	}	UINT16 id = PyInt_AsLong( PyTuple_GetItem( args, 0 ) );	INT16 color = -1;	if ( PyTuple_Size( args ) > 1 && PyInt_Check( PyTuple_GetItem( args, 1 ) ) )		color = PyInt_AsLong( PyTuple_GetItem( args, 1 ) );	UINT16 avail = 0;	avail = self->pItem->CountItems( id, color );	return PyLong_FromLong( avail );}