im still on my stock battery after 4 years and nearly 70k miles. I also had a tacoma that had the same original battery for about 5 years
its all in the way you treat it. it depends on how often it gets charged up through actual engine running, how often it is left to discharge, the environment it is in, how well the terminals are kept, etc
one of the first things i like to do for battery maintenance is buy one of those battery terminal kits with the washers and spray bottle. the washers have a special anti corrosive treatment infused so battery acid wont wick up the terminal, and the spray is also anti-corrosive so you protect the terminals and wire connectors
another trick i learned from my dad before even driving was to make sure that as many electrical components were turned off as possible to it was less strain for the battery during startup. it always killed me to ride with someone who started their car and the ac was at fuol blast, stereo on, headlights on, just a bunch of unnecessary stuff
if you dont start your car for more than mabye 4 days at a time id invest in a trickle charger. the longer the battery is left to dicharge the less life the plates within the battery will have
also, check under that battery cover every once in a while and just brush or blow the dirt off the top. a clean battery is a happy battery