bash by default is configured to store the last 500 commands. You can configure it to store as many as you want, limited only by practicality and size, to whatever you want by setting the environment variable HISTFILESIZE to a different number.
export HISTFILESIZE=2000