Changes count function to return at max 30 minutes of counts