First implementation, use strlen to count C-string length