added missing argument to function in motifCounter