am 033f7e8e: Merge "InputDispatcher: Optimize count()"

* commit '033f7e8e35ac76404fe823a67e07ba7c42bc357c':
  InputDispatcher: Optimize count()