openfimg: compiler: Fix initial number of variables calculation

Source registers must be taken into account as well.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>