Fix statics byte counter calculation to include "value" length (bytes).

The calculation became inaccurate when the "value" field was removed
from protocol definition.