Count Number Of Times A Substring Appears In A String Python