Check for occurences of string in other string
JavaScript 32

Nothing really interesting here...

(p=prompt)().split(p()).length-1


split main purpose is to create an array from a string using the delimiter in argument.