##' Count objects in a collection
##'
##' Returns the number of documents
##'
##' @export
##' @return count
mongoCount <-
function(conn, query=list()){
mongoRunCommand(conn,
list(count="$cmd",
query=query)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.