Counts the lines and keys in a text area.