protected static Ptg calcCount( Ptg[] operands )
	{
		int count = 0;
		for( Ptg operand : operands )
		{
			Ptg[] pref = operand.getComponents(); // optimized -- do it once!! -jm
			if( pref != null )
			{ // it is some sort of range
				for( Ptg aPref : pref )
				{
					Object o = aPref.getValue();
					if( o != null )
					{
						try
						{
							Double n = new Double( String.valueOf( o ) );
							count++;
						}
						catch( NumberFormatException e )
						{
						}
					}
				}
			}
			else
			{  // it's a single ptgref
				Object o = operand.getValue();
				if( o != null )
				{
					try
					{
						Double n = new Double( String.valueOf( o ) );
						count++;
					}
					catch( NumberFormatException e )
					{
					}
					;
				}
			}
		}
		PtgInt pint = new PtgInt( count );
		return pint;

	}