can any one tell me the controller syntax for db record count?

I want to specify this mysql query syntax in controller

  select count(*) from tablename where user_id=7;

  what is the controller syntax similar to the above sql quert?


thanks and regards
Rubyquest

-- 
Posted via http://www.ruby-forum.com/.