daveb
committed
on 30 Dec 04
Fix count query to check permissions as well.