I have added sample data below, I have used dplyr to count on Rco and month:
Rco
month
structure(list(Rco = structure(c(1L, 1L, 1L, 1L, 2L, 2
You can use tidyr::complete and specify the fill to be 0 (instead of the default NA):
tidyr::complete
library(tidyr) complete(df, Rco, month, fill = list(count = 0))