Issue #1995834 by japerry: Refactor attendee_count to remove php 5.4 errors