methods to get number of metrics and dimentions