Counting for multiple activities simultaneously