count added, update_attributes changed to updateAttributes