added sequence counting functions. Is is based on a hashmap with sequence as key and count as value. basic idea from map reduce, but I doubt whether there is a need to introduce map-reduce level computation according to the real situzation.