Group by letters sequence pattern count