Create an array of ArrayList obejcts depending on the count you provide and then use it accordingly in the code.
e.g.
using System.Collection; // this namespace holds the definition for ArrayList
ArrayList[] arr= new ArrayList[count];
int capacityForList=30;
arr[0]= new ArrayList(capacityForList);
If you have any other solution please do reply me.