update layer counts after tasks