Tuning fully connected layers

How many fully connected layers should be added to a model? Does it depend on input size to fully connected layer?If so, how do we decide?What if the input size of fully connected layer is very high ., say 401408 (in my case)?