Sollicitatievraag bij Nordic Semiconductor

Given Verilog code, asked how many flip flop needed for this code?