Cratering of a comet nucleus by meteoroids