add attachments count to comments and reset its value