Number of results

hello
i wont to count number of results from database.All and search (number
of search)results…
how u do this in rails.
thanks