There is no function to count the occurences of needle in haystack, so I made my own one... I know it's a bit crappy, but don't ask me too much, I'm still only 13... ;)