count and seq implemented on relation