fix wrong feature count for postgres data provider