Taskwarrior is perfect. Give it a try.
> t stats | grep -E 'Oldest|Total' \n
Total 7675
Oldest task 2014-07-24