Create Frequent.py

Created function for frequency of terms in a given input