05AB1E, 7 6 bytes
∞-γ€gZ
Thanks to @Kevin Cruijssen for -1 byte
Code:
∞ push endless list [1, 2, 3, 4, 5, ...]
- subtract that from input
γ group by equal elements
€g push lengths of each group
Z push max length
implicitly print top of stack