[Codility] Added solution to counting bounded slices.