getEvents returns the collection during the specified period. Check also the section of each event to get the correct events number.
addMarkedTimespan has the
html property which can be used to add an HTML content to the marked range, please check details in the documentation.
You should specify the number that was calculated using
getEvents for the required time period in
html property of