Hi, good question. This is actually not stated anywhere in the official documentation but the ResultProxy object actually has a rowcount property built into it natively.
You can make use of the rowcount property to serve your needs.
Hope this helped!