VB.Net – Count substring occurrences in a string .Maui 5 years ago The simplest way Dim text = ".Maui is awesome" Dim count = text.Split("a").Length -1