Counts the number of results from a query.
'Assembly: System.Core.dll
'Namespace: System.Linq
'Dim queryResult AS item
'Dim item AS item
'Dim dataSource AS String
'Dim field1 AS String
'Dim field2 AS String
Dim queryResult = From item In dataSource _
Select item.field1, item.field2
Dim count = queryResult.Count