Added getNumberOfGlobalParameters