ERT-522 Reimplemented BoolVector count function and added test.