Distribution of the number of times some Markovian queues reach their capacity in time incorporating the concepts of catastrophe and restoration