For context some approximations insofar as number of neurons for a rough and imperfect estimate of brain complexity
- Lobster: 100,000
- Jumping Spider: 100,000
- Ant: 250,000
- honey bee or roach: nearly a million
- cats, dogs, and octopi: hundreds of millions
- Human: about 86 billion 1
1 https://www.nature.com/scitable/blog/brain-metrics/are_there...
The apparent divergence of the first 2 entries whereas ants and roaches seem very stupid singly makes one wonder how many neurons exactly are needed to have a complex internal life. One would be hard pressed to imagine the single ant, roach, or bee suffers but the relatively complex behavior of the jumping spider makes it easier to imagine it suffering.
It is however easy to see there is little similarity between lobster and octopus when the latter has 500 x as many brain cells.