When there is only 1 cluster, the $v variable will not be an array and the Count property will not exist (provided you are not using PowerShell v3).
What you can do is change that line into
$v = @(get-cluster)
That way it will be an array, even with 1 cluster.
For no cluster ($v -eq $null) you will have to add some extra lines.