micropython/micropython — pull request #343 by xbe (2014-03-13 05:59:45+00:00)
Title: Implement str.count and add tests for it.

Also modify mp_get_index to accept:
1. Indices that are or evaluate to a boolean.
2. Slice indices.
Add tests for these two cases.