use #count rather than #inject