Count the number of ways to split all the elements of the array into 3 contiguous parts so that the sum of elements in each part is the same.
A = [1, 2, 3, 0, 3]