bd49ded308
Fixed it by inlining it in the two places where the count is used and simplified the logic there.
Fixed it by inlining it in the two places where the count is used and simplified the logic there.