The Metadata browser's Keyword column in hierarchical view shows inconsistent counts for directly assigned keywords containing child keywords.
My personal catalog has many, many such instances of this. They're easy to find: Configure the Metadata browser with two Keyword columns, the first with View > Hierarchical and the second View > Flat. For example, "Dubrovnik" shows a blank count in Hierarchical and a count of 79 in Flat:
To reproduce:
1. Download this tiny catalog and open it in LR:
https://www.dropbox.com/scl/fi/hckz8qbeqk3nynnrtbojj/keyword-column-bug.2023.07.30.zip?rlkey=ymrubwd...
2. Do File > Library Filters > Enable Filters.
3. In the Library Filter bar, click Metadata.
4. Remove the last two columns, leaving two columns.
5. Configure the second column to Keyword / View > Flat, the first column to Keyword / View > Hierarchical.
6. In the Keywording panel, set Keyword Tags to Enter Keywords.
7. Select 1.jpg and assign the keyword A>A1 in the Keywording panel.
8.Select 2.jpg and assign the keyword A>A2.
9. Select 3.jpg and assign the keyword A>A3.
10. Select 4.jpg and assign the keyword A.
11. Select 1.jpst and assign the keyword B>B1.
12. Select 2.jpg and assign the keyword B>B2.
13. Select 3.jpg and assign the keyword B>B3.
14. Select 4.jpg and assign the keyword B.
15. Observe in that the first Keyword column correctly shows a count of 1 for A but incorrectly a blank count for B:
16. Let you have problems reproducing this, you can download the final version of the catalog with the inconsistent counts:
https://www.dropbox.com/scl/fi/0o14dn2zcwfnk7ix241w8/keyword-column-bug-final.2023.07.30.zip?rlkey=x...
Tested on LR 12.4 / Mac OS 13.4.