soft count calculator working correctly