def count_items(input_text):
    items = input_text.split(", ")
    count = len(items)
    print(f"Total items: {count}")

    return count

# Test the function with the given examples
print(count_items("I have a garlic, a cabbage, a yam, a carrot, and a stalk of celery. How many vegetables do I have?"))
print(count_items("I have a clarinet, a couch, a flute, four chairs, five trombones, a drum, a trumpet, a violin, and an accordion. How many musical instruments do I have?"))
print(count_items("I have an orange, a grape, a strawberry, three apples, a plum, a banana, a raspberry, a blackberry, a nectarine, and three peaches. How many fruits do I have?"))