Ensure that the resultset count is set to 0 in the event of no data.

Also some formatting noise.