Database: number of rows when using Db::select?

What is the right way to do a SELECT count ... when using Db::?
I couldn’t find a method affected() like in the Database-Class.

ooops, I missed the where-part. Thank you.

The where clause is optional.