#include<bits/stdc++.h>
using namespace std;
 
int main(){
	int n,a[100001];
	cin>>n;
	for (int i=0;i<n;i++)cin>>a[i];
	sort(a,a+n);
	unsigned long long sum[100001];sum[0]=a[0];
	for (int i=1;i<n;i++)sum[i]+=sum[i-1]+a[i];
	for (int i=n-2;i>=0;i--)if (sum[i]*2>=a[i+1])sum[i]=sum[i+1];
	int ans=0;
	for (int i=0;i<n;i++){
		if (sum[i]==sum[n-1])ans++;
	}
	cout<<ans<<endl;
}
