Ah well , it you'd have needed the count as number,
you would have figured it out, or casted it and coped with the empty string. Saying that you'd have needed to use is IsNull, even with my quibble on board. I do a fair bit of this sort of stuff becasue an immovable leagcy database, so I've got in the habit of forcing the logical datatype.