A group of neighbors planted basil, thyme, rosemary, and oregano in a community garden. They planted the same number of each herb for a total of 52 plants. How many rosemary plants were planted?