Implements row count changing.