Removing echoing of groupCount. Javascript counts how many rows the PHP generates anyways so it's not needed.