You might be able to use subselects or a union to do this as well. If you're using a version of a database that supports those things.
select aid,bid,(select count(*) from accounts) as total from accounts limit 5;
Works in pgsql 7.4beta1
as does:
select from (select count(),0 from accounts) as a union (select aid,bid from accounts limit 5);