close #918 counting character in cards/edit