My solution:
Please create a table for result:
TransCount: employeeid text, countnum long
your tablename: tblOrder (modify the code to match you table)
Code:
Public Sub countCount()
Dim rsEID As DAO.Recordset, rss As DAO.Recordset
Dim IDstr As String, eid As String, counter As Long
CurrentDb.Execute "delete * from transcount"
Set rsEID = CurrentDb.OpenRecordset("select employeeid from tblorder group by employeeid")
Do While Not rsEID.EOF
Set rss = CurrentDb.OpenRecordset("select orderid + itemid + picklocation as IDs,historysequence from tblOrder where employeeid='" & rsEID!employeeid & "' order by historysequence")
counter = 0
IDstr = ""
Do While Not rss.EOF
If IDstr <> rss!IDs Then counter = counter + 1
IDstr = rss!IDs
rss.MoveNext
Loop
CurrentDb.Execute "insert into transcount (employeeid,countnum) values ('" & rsEID!employeeid & "', " & counter & ")"
rsEID.MoveNext
Loop
Set rss = Nothing
Set rsEID = Nothing
End Sub