# Define the string
string = 'Python Bash Java Python PHP PERL'
# Define the search string
search = 'Python'
# Store the count value
count = string.count(search)
# Print the formatted output
print("%s appears %d times" % (search, count))
IyBEZWZpbmUgdGhlIHN0cmluZwpzdHJpbmcgPSAnUHl0aG9uIEJhc2ggSmF2YSBQeXRob24gUEhQIFBFUkwnCiMgRGVmaW5lIHRoZSBzZWFyY2ggc3RyaW5nCnNlYXJjaCA9ICdQeXRob24nCiMgU3RvcmUgdGhlIGNvdW50IHZhbHVlCmNvdW50ID0gc3RyaW5nLmNvdW50KHNlYXJjaCkKIyBQcmludCB0aGUgZm9ybWF0dGVkIG91dHB1dApwcmludCgiJXMgYXBwZWFycyAlZCB0aW1lcyIgJSAoc2VhcmNoLCBjb3VudCkp