Grid search record count variable

I want to jump directly to a form when grid search results return a single record. I would like to be able to check the record count and if == to 1 then sc_redir to form application. The record count is displayed on the grid results, so I know it is being stored somewhere.

If there is a better way to do this, let me kow.

Thank you,

Would be nice to know if someone has a solution to easy show a form linked to a grid if the search results only have one result …