q = Item.where(qid: 64).count
# SELECT COUNT(*) FROM "items" WHERE "items"."qid" = $1  [["qid", 64]]
q = Item.where(qid: 64).length
SELECT "items".* FROM "items" WHERE "items"."qid" = $1  [["qid", 64]]
length takes all columns just to return a numbercount doesn't take the columns, uses SQL function to return a number (might tale longer but less overhead)