Add maximum number of events in activity stream

We are facing the problem that after regular imports, the activity stream takes too long to load, because there are too many items in. Currently the limit is set by days, not number of records.
Redundant curly braces around a hash parameter.<br>Space inside { missing.<br>Space inside } missing.