node js count characters in string