I'm assuming it just iterates through the character array until it reaches the end... incrementing a counter on each iteration. Not totally sure although because I normally just use java.
Does every array contain a "size" data member in C++?
I know in java you could simply say "myCharArray.size" if you had a character array instead of the regular string class.