if you are reading the database table into an in-memory datatable, you can just use the DataTable.Rows.Count property
my in-memory table is named dtTest
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Label1.Text = dtTest.Rows.Count.ToString & " Records"
End Sub