x is not used anywhere in the specs. Use name of argument instead.
Enum.count_until/2
Enum.count_until/3