Dynamically calculating the amount of total todos and displaying in the view.