human
Maximum count of equal numbers in an array after performing given operations | Function to find the maximum number of equal numbers in an array.
to store sum of elements.
if sum of numbers is not divisible by n.
Driver Code.
size of an array"
How can the above be solved in Python?
 Can you provide a code to maximum count of equal numbers in an array after performing given operations and the other steps required?
assistant
#Here is code to maximum count of equal numbers in an array after performing given operations and the other steps required.
 def EqualNumbers ( a , n ) :
	sum = 0 ;
	for i in range ( n ) :
		sum += a [ i ] ;
	if ( sum % n ) :
		return n - 1 ;
	return n ;
a = [ 1 , 4 , 1 ] ;
n = len ( a ) ;
print ( EqualNumbers ( a , n ) ) ;