date formula?

Hi, I’d like to create a smart group that shows me the *last 50 references* I’ve imported. So I need a way to say “today” and a way to say “number of references imported” and “less than or equal to 50” (yes I see how to do the latter). Does EN even have formulas? Do I have to write an AppleScript?