count common environments like table,figure,verbatim etc..
Examples
article_dir <- system.file("examples/article",
package = "texor")
figures <- texor::count_env(article_dir, "figure")
print(paste("figure count : ", figures))
#> [1] "figure count : 1"