def stringgen():
	target1='atgacatgcacaagtatgcat'
	key='atgc'
	#print target1,key
	countSubStringMatchRecursive(target1,key)
	

	

def countSubStringMatchRecursive(target1,key):
	count=0
	pointer=0
	print 'Parent String',target1
	print 'Match key',key
	pointer=subrecfn(target1,key) # returns the pointer of the last match.
	if pointer!=-1:
		count+=1
		target1= target1[pointer:]
		subrecfn(target1,key)
	else:
		print 'No more matches!' 
		break
		
	
	
	
	
	
	
def subrecfn(target,key):
	int pointer## Is this valid in Python, if yes then the function isnt necessary!
	pointer=find(target,key)
	return pointer
	
