Add StringCounter.length field

It counts the total number of times the addString() method has been
called.