The .bash_history file contains a list of the previous commands executed. I don't know if it contains any login information; I would have to double-check.
If you'd like to count how many times you have logged in since deciding to keep track of it, then this is one way to do it:
1. Edit your ~/.bash_profile to include this:
Code:
counter_file="~/.login_counter"
if [ -e ${counter_file} ] ; then
expr $( cat ${counter_file} ) + 1 > ${counter_file}
else
echo 1 > ${counter_file}
fi
unset counter_file
2. When you want to know how many times you've logged in, execute this command (or set up an alias):
Code:
cat ~/.login_counter