fixing the issue in which the data catalog displayed layer count wasn't matching up with the actual layer count