Php Number Of Characters In String Python Example