graphene: simplify check of data size in Cell2DDatasets.linearRange

Firstly, this:

    ((xCount) * (yCount - 1) + xCount)

can be simplifed to:

    xCount * yCount

Secondly, the `if` statement tests whether (expected - 1) != (actual - 1), which seems unnecessary.