Correct the property name in the 2nd example.
Correct the property name in the 2nd example.

The Count property is always 1.
The correct property should be Total or TotalCount. I have chosen Total.

alevyinroc/dbatools