counts kmers
added a function to convert sequences to numbers