Hello Frankie,
I would use a sort descending on the Counter or datetime, together with a top constraint, this should retrieve the last X entries depending on the number in your top constraint.
You could use something like:
SELECT appnumber, SystemXCallcounter, SystemXCallDateTime FROM MyModule.MyEntity
ORDER BY SystemXCallcounter DESC
Limit 2
Hope this helps