Convert getPlaneCount from int to long

As all plane dimensions are now longs, the overall plane count must be a
long as well.