Use Turbowarp: https://turbowarp.org/515204216/fullscreen?turbo The block count states that there are 33 blocks. According to the original rules you should subtract 15 from that, hence the 18 in the title.
Thanks to @Raihan142857 for the original formula's. I managed to remove all variables and use clones and coordinates instead. They are way slower, but they do the job! :D The thumbnail is the finished drawing I got using Turbowarp