I also had some trouble getting SpEL to work with `payload % #count`. The parser wanted an identifier when it found `%` (or `mod`). Could be a SpEL bug, but I didn't have time to track it down.