Detecting anagrams within a Parent String
Pyth, 11 10 bytes

lfqSzST.:w


1 byte golf thanks to @Jakube.

Demonstration.

Takes the query string, followed by the parent string on a new line.

Ungolfed:

z = input()
len(filter(lambda T: sorted(z) == sorted(T), substrings(input())