In order to control the number of entries in history, you just need to adjust the HISTSIZE parameter. There's a very good
bash guide here and you probably would be most interested in the History section. Please also see man bash for more detail.
Welcome to LQ!