Ruby on Rails, Activerecord, MySQL, Database.
number of users. However, users.count will always run the query SELECT COUNT(*) FROM users WHERE ... even if the relation has already been loaded. On the other hand, size is smarter in that it will call length on the relation if it already has been loaded (saving us a database query) but calls