Update feature count on layer modification (Fix #8445)