def __get_amount_color(self, node_indexes, color_number):
color_counter = <NUM_LIT:0>;  <EOL>for index in node_indexes:<EOL><INDENT>if (self.__coloring[index] == color_number):<EOL><INDENT>color_counter += <NUM_LIT:1>;<EOL><DEDENT><DEDENT>return color_counter<EOL>
!
        @brief Countes how many nodes has color 'color_number'.

        @param[in] node_indexes (list): Indexes of graph nodes for checking.
        @param[in] color_number (uint): Number of color that is searched in nodes.

        @return (uint) Number found nodes with the specified color 'color_number'.