Added PatternToNumber.py