GetVariableCount Method (Python) Returns the number of variables in the associated dataset. Syntax SpssDataDoc.GetVariableCount()