add behavior for setting max response count

In Emacs, freeze is caused by parsing a large json response.
So, I want to limit the size of json response.

This change is only for doing "completions" because I need limiting when do "completions" at present.
I hope that tss come to be able to limit the size for any json response someday.