Python Count Group By Sql Syntax Dateadd