$rows.count when the number of rows is 0 doesn't work
$rows.count when the number of rows is 0 doesn't work

When the number of rows returned is 0, the .count method doesn't work,
need to use Measure-Object.

SirCaptainMitch/dbatools,dsolodow/dbatools,wsmelton/dbatools,sqlpadawan/dbatools,alevyinroc/dbatools,kozloski/dbatools,Splaxi/dbatools