. . . It depends on whether you have finished materials or pre-painted materials. If you have finished materials, it won't take long to assign them directly to the frame, but it may take a long time to draw them. The shortest one is a few hours, the long one is several months.
It also depends on what software you use to do it, and the complexity of the content. If you do it with something like FLASH, it may be simpler, and then you can do it with a single line like 'Xiao Xiao'. The painting is much easier to do.
The specific number of frames to be done will be known by adding them up. 5 minutes * 60 seconds * 12 frames per second, there is a result.