The Tasks icon on the sidebar will display the number of pending tasks that you have on the Tasks page. You can adjust the statistical range or disable this function in the Settings.
A badge is a numbered red dot that appears on the Tasks icon. It is used to remind you of how many overdue tasks you have. The corresponding number of pending tasks is also displayed next to each task type.
Go to Tasks, then click the Settings button in the upper-right corner to carry out the settings.
You can modify the statistical scope of the badges displayed, including for Overdue tasks and tasks Overdue or due today.
You can disable the Badge count function in Tasks settings. Uncheck the Badge count box to disable this function.