The count() function in plyr does what you want:
count()
plyr
library(plyr) count(mydf, "MONTH-YEAR")
2.1m questions
2.1m answers
60 comments
57.0k users