
Count Halloween Monsters

For Halloween you decide to release the monsters with an old spell again.
The input value is a string generated by stacking the following monster's name:
- frankenstein
- ghost
- jack (jack-o'-lantern)
- mummy
- skeleton
- vampire
- werewolf
- witch
- zombie
Find and count the monsters in that string and returning the number.
NOTE:- The answer is the minimum possible value.
- Multiple monsters of the same type can exist.
Examples:
assert count_halloween_monsters('jack') == 1 assert count_halloween_monsters('jaghost') == 2 assert count_halloween_monsters('zombieletwitch') == 3 assert count_halloween_monsters('jackostmmzombiere') == 5 assert count_halloween_monsters('skfrawitchteinolf') == 4
Input: The spell (A string).
Output: The number of the monsters (An integer).
Precondition:
- 4 ≤ len(spell) ≤ 50