removed unecessary new String() in getSingleVarCount()