Yes, you can use this to get the number of sessions
write-host (Get-View SessionManager).sessionList.count
If you want to list the sessions use this
foreach($ses in (Get-View SessionManager).sessionList){
Write-Host $ses.UserName
}
Other properties for a session can be found in the UserSession object.