Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Text As String = "this is a simple text that we will use it in our exemple so if you are interested pleaz let a comment coz that will mean that you love VB9 like me"
Dim WordOccurences As Integer
Dim SplitText() As String = Text.Split(New String() {" "}, StringSplitOptions.RemoveEmptyEntries)
Dim OurQuery = From word As String In SplitText Where word.ToLower = TextBox1.Text.ToLower Select word
WordOccurences = OurQuery.Count
MsgBox(WordOccurences)
End Sub