(bug 43291) statementview: counter for number of references

The statementview will now display how many references are part of the statement. The references
are not yet displayed within the view.

Change-Id: Ib6e1eef0732aac30c78e6cdd1da0467ab9bd0f21