Fixed remainingCount() function in TodoCtrl