Detect Amount (5e Spell)
From D&D Wiki
|Casting time:||1 Action|
|Components:||V,S,M (an abacus)|
Choose one area or container you can see that is less than or equal to 22,500 square feet (150 by 150 feet) or less. Name an item or creature. You immediately learn how many of that object lies within the area, unless it is hidden by magic of 3rd level or higher. The description of the subject may not be more than three words, and traps cannot be found with this method unless their construction can be described in three words. This spell cannot tell the caster where the subjects of their query lie in relation to them.
If you chose a creature type while a subject of that description is in a different form, such as being under the effects of a Polymorph spell, this spell does not account for the creature.
For example, if the caster were to state "Humanoid", and there were three known humanoids (including the caster) in the area and one other humanoid under the effects of Greater Invisibility, the number that this spell would provide would be three.
At Higher Levels. When you cast this spell using a spell slot of 2nd or higher, add one to the level of spell it can divine. This spell cannot be used to divine magic stronger than 4th level. You cannot divine a creature under the effects of Polymorph with this spell even at higher levels.