count(column_name = nil)
public

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