crude support for count(*)