On the enumeration of a certain type of hyperplane arrangements