%Thisfunctionimplementsthegaussiansmoothforanhistogramanthenit%canbeusedtofindthethershold.ItusestheCOUNTSvariablethatis%returnedbytheimhistfuncionanwisthesizeofthewindowthatyou%wanttouse.Ithastobeaoddnumber.ifnot,thefuncionwillnotrun%properly.