count(column_name = nil, count_options = {})
public

Count all records using SQL. Construct options and pass them with scope to the target class’s count.