Remove Sub-Folders from the Filesystem
Given absolute folder paths with slash separators, return how many folders are sub-folders of another folder. A path is removed when a retained shorter path is followed by a slash boundary in it. A shared character prefix without a slash boundary does not count, so `/a` does not contain `/ab`.