count() works in Preview but not in Live

Did you sync your sandbox data with the Live?