use #count instead of #size with activerecord in example