Count String Function Python Example Using Rpi5