dimActive function

Number of active dimensions