Create get count of rows in layers and tables.py