% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/advanced.R
\name{mdb_count}
\alias{mdb_count}
\title{Count Rows In Table}
\usage{
mdb_count(path, table = NULL, where = NULL, version = FALSE)
}
\arguments{
\item{path}{Path to \code{.mdb}/\code{.accdb} file.}

\item{table}{Table name.}

\item{where}{Optional SQL predicate appended to \code{WHERE}. This is an R-side
extension and is not part of the CLI.}

\item{version}{Logical; when \code{TRUE}, return mdbtools version (\code{--version}).}
}
\value{
Integer row count or version string.
}
\description{
\code{mdb-count} is a utility program distributed with MDB Tools.
It outputs the number of rows in a table.
}
\examples{
db <- mdbr:::.mdb_example_nwind_path()
if (nzchar(db)) {
  mdb_count(db, "Orders")
}
}
