handy function for updating frames count in multihead setup

can be called as is