LURE: Fix getNumGroats

This fixes bug #3612682
(cherry picked from commit 38ac5854f4656d8106b5a257d15c696e16014b6b)