If doing custom development follow these simple steps
public static int getItemsInLastMonth(ref SPWeb web,string listName) { SPList list = web.TryGetList(listName); if(list != null) { SPQuery query = new SPQuery(); query.Query = "<Where>"+ "<Eq>"+ "<FieldRef Name='Created' />"+ "<Value Type='DateTime'>+ <Today> +</Value>"+ "</Eq>"+ "</Where>"; query.ViewFields = "<ViewFields>"+ "<FieldRef Name='ID' />"+ "</ViewFields>"; SPListItemCollection collection = list.GetItems(query); if(collection != null){ return collection.count; } } }
This will give you total items created in last month. Similar you can do for document library also, and do it in client side coding.