I'm working with a database where I have explicit account numbers that are put in a specific group. I need to be able to create a function where like account numbers that show up on consecutive days are counted. So for example, account 15145 shows up on 10/01/19, 10/02/19, and 10/3/19. I need something that quickly groups those accounts and provides a day count of 3 for this account.