Added Scalar and Count methods