import numpy as np
# Create a new X array of length 10 filled with ones
X = np.ones(10)
# Create a new array Y of 20 random integers between 0 and 9 (inclusive)
Y = np.random.randint(0,len(X),20)
# Count the occurrences of each index in Y, and add the counts to the corresponding indices in X
X += np.bincount(Y, minlength=len(X))
print(X)