• In a textbox, right-click and choose Expression. There you can use the CountRows (and many other) functions