Added counter for sidenotes