This is not valid dplyr
syntax, I think you want to do something like this
library(dplyr)
transactions_by_date <- transaction_data %>%
count(DATE, name = "count")
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.