Needs to minus the max count with 1, otherwise it tries to use ID 2 which doesn't exist