$files = Get-ChildItem -Path '.' -Filter '*.md' -Recurse $totalLines = 0 $totalChars = 0 foreach ($file in $files) { $content = Get-Content $file.FullName -Raw -ErrorAction SilentlyContinue if ($content) { $lines = ($content -split "`n").Count $chars = $content.Length $totalLines += $lines $totalChars += $chars } } Write-Output "Total files: $($files.Count)" Write-Output "Total lines: $totalLines" Write-Output "Total characters: $totalChars" Write-Output "Avg characters per file: $([math]::Round($totalChars/$files.Count))" Write-Output "Avg lines per file: $([math]::Round($totalLines/$files.Count))" # Categorize files $templates = Get-ChildItem -Path './Templates' -Filter '*.md' -Recurse $daily = Get-ChildItem -Path './Daily' -Filter '*.md' -Recurse $notes = Get-ChildItem -Path './Notes' -Filter '*.md' -Recurse $clippings = Get-ChildItem -Path './Clippings' -Filter '*.md' -Recurse $references = Get-ChildItem -Path './References' -Filter '*.md' -Recurse $categories = Get-ChildItem -Path './Categories' -Filter '*.md' -Recurse Write-Output "`nBreakdown by category:" Write-Output "Templates: $($templates.Count)" Write-Output "Daily notes: $($daily.Count)" Write-Output "Notes: $($notes.Count)" Write-Output "Clippings: $($clippings.Count)" Write-Output "References: $($references.Count)" Write-Output "Categories: $($categories.Count)"