count of characters python