count number of characters in string java 8