This is not the right script to change if you want to achieve your purpose: this script will be executed, I presume, after the shot.
This script is the life of the bullet itself and is not the definition of the clip.
To set a limit to the number of bullets available you have to change the script that will spawn the object that this script is attached to.
Same thing for the fire rate.
If you have the code that you posted and you’re using it in a project and everything is working with infinite bullets, you already have the necessary script to change. Look for something like Weapon or something similar.