dynamic rowcount output