#' Get a count of number of documents found
#'
#' @export
#' @param .data Input
#' @examples \dontrun{
#' index("gbif") %>% n()
#' }
n <- function(.data) {
pipe_autoexec(toggle = FALSE)
exec2(structure(as_esdsl(.data), class = "esdsl"))$hits$total
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.