Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Count Occurrence

rohitrai3rohitrai328 downloads

Show number of occurrences in file.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

This plugin allows for showing number of occurrences of given string in Obsidian (https://obsidian.md).

Usage

Add a code block with countoccurrence language code. Each line of string will be updated with its number of occurrences in front of it:

Code block

```countoccurrenece
Watched
Read
Played
```

Output

Watched: 3
Read: 6
Played: 8
95%
HealthExcellent
ReviewSatisfactory
About
Count occurrences of specified strings across your notes and prepend each listed line with its occurrence number. Add a code block using the countoccurrence language and list strings one per line to output entries like "Watched: 3".
SearchCodeFormatting
Details
Current version
1.0.1
Last updated
2 months ago
Created
2 months ago
Updates
2 releases
Downloads
28
Compatible with
Obsidian 1.12.7+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Author
rohitrai3rohitrai3
rohitrai.dev
GitHubrohitrai3
  1. Community
  2. Plugins
  3. Search
  4. Count Occurrence

Related plugins

Find and replace in selection

Find what you are looking for in the selected text and replace it with the specified text.

Templater

Create and use dynamic templates.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Smart Connections

AI link discovery copilot. See related notes as you write. Lookup using semantic (vector) search across your vault. Zero-setup local model for embeddings, no API keys, private.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Quiet Outline

Make outline quiet and more powerful, including no-auto-expand, rendering heading as Markdown, and search support.

Easy Typing

Auto format when typing.

PlantUML

Generate PlantUML diagrams.